package cn.xi.goods.service;

import cn.xi.pojo.Brand;
import com.changgou.entity.PageResult;
import com.changgou.entity.Result;

import java.util.List;
import java.util.Map;

public interface BrandService {

    List<Brand> findAll();
    Brand findId(Integer id);
    void add(Brand brand);
    void save(Brand brand);
    void delete(Integer id);
    Result<List<Brand>> getString(Map map);
    PageResult<Brand> pageFind(Integer page,Integer size);
    Result<List<Brand>> getPageString(Map map,Integer page,Integer size);
    List<Map> findCategoryByBrand(String name);
}
